package com.aaa.web.service.icarhouseservice;

import com.aaa.entity.repair.BackEntrepot;
import com.aaa.web.commons.NewCarQuery;
import java.util.Map;

/**
 * @program: battery
 * @description:
 * @author: 王璐
 * @create: 2018-12-22 08:38
 **/
public interface IPartsHouseService {

    /**
     * 获取所有的配件
     * @param query
     * @return
     */
    Map getAllParts(NewCarQuery query);

    /**
     * 查询配件
     * @param query
     * @param backEntrepot
     * @return
     */
    Map selectParts(NewCarQuery query, BackEntrepot backEntrepot);
    /**
     * 添加配件
     * @param backEntrepot
     * @return
     */
    int addParts(BackEntrepot backEntrepot);

    /**
     * 补货
     * @param goodsName
     * @param goodsQuantity
     * @param goodsCost
     * @return
     */
    int addOneTypeParts(String goodsName, int goodsQuantity,double goodsCost);

    /**
     * 编辑
     * @param goodsName
     * @param oldGoodsName
     * @return
     */
    int editOneTypeParts(String goodsName,String oldGoodsName);
}
